<?php $user=$session->read('User');?>

<div class="right_side_operate_area">
	<div class="right_side_title left">
		<h2>
		<?php 
		$companyname=$form->value("Company.company_name");
		echo $html->link($companyname,"/companys/showinfosummary/".$id);
		?>
		</h2>
		<div class="clear"></div>
	</div>
    <div class="right item_add_btn">
    <?php 
    	$id=$form->value('Company.id');
    	$str_title = __("Add",true);
		if($id){
			$str_title = __("Edit",true);
		}
		$companypath="/companys/index/";
    	if($user['cid']){
    		$companypath="/companys/showinfosummary/".$user['cid'];
    	}
		echo $html->link(__("Cancel",true).$str_title,$companypath);
    ?>
    </div>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
    <div class="detail_info_panel">
    	<?php echo $form -> create('companys', array('url' => '/companys/editinfo/','enctype'=>'multipart/form-data','type'=> 'post','onsubmit'=>'return checksave()') ); ?>
        <div class="details_item_line">
             <div class="details_item">
                <div class="form_left_title left">企业Logo：</div>
                <div class="form_right_e_input left">
                <?php 
                if(!empty($logo)){
	                $logoimg=$logo["file_path"];
	                if($logoimg){
	                	echo $html->image("/".$logoimg,array("width"=>"200px","height"=>"80px")).'<br/>';
	                }
                }
                ?>
                <input type="file" name="CompanyLogo[]" />
                </div>
       		</div>
       	</div>
        <div class="details_item_line">
             <div class="details_item">
                <div class="form_left_title left"><font style="color:red">*</font><?php __("Company Name")?>：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.company_name',array('style'=>'width:250px',"maxlength"=>"100"));?></div>
                <div id='companynamemessage' style='display:none;' class="error_message">请输入企业名称</div>
                <?php $cname=$form->value('Company.company_name')?>
                <div id='cname' style='display:none;'><?php echo $cname ?></div>
                <div style='display:none;'><?php echo $form->text('Company.cname',array("value"=>$cname)) ?></div>
            </div>
			<div class="details_item">
                <div class="form_left_title left">企业地址：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.license_address',array('id'=>'license_address','style'=>'width:250px',"maxlength"=>"100",'placeholder'=>'同工商执照'));?></div>
                <div id='companylicenseaddressmessage' style='display:none;' class="error_message">请输入企业地址</div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
            	 <div class="form_left_title left">所属产业：</div>
            	 <div class="form_right_add left">
                	<?php 
		            $industryidlist="";
		            if($pros_cvalues){
			            foreach($pros_cvalues as $pros_cvalue){
			            	if(!empty($pros_cvalue["cvid"])){
			            		$industryidlist.=$pros_cvalue["cvid"].',';
			            	}
			            }
		            }
		            ?>
		            <div id="pcvalueidlist" class="txthide"><?php echo $industryidlist?></div>
                	<div id="taglist" class="added_item_list left"></div>
                    <div class="add_item_btn left">
	                    <a id="add_drop_float_click" href="javascript:void(0)"><?php __("Add")?></a>
		                <div id="add_float_box" class="add_float_box" style="display:none;">
		                    <ul>
			                    <?php 
			                    $dan="'";
			                    foreach($industrys as $key=>$industry){
									echo "<li><label>";
									echo '<input type="checkbox" id="chbox'.$key.'" onclick="settxt(this,'.$dan.$industry.$dan.','.$dan."#ProjectIndustryname".$dan.','.$dan."#ProjectIndustryid".$dan.','.$dan."#taglist".$dan.','.$dan."add_drop_float_click".$dan.')" value="'.$key.'" />'.$industry;
									echo "</label></li>";
									echo "<span id='span".$key."' class='txthide'>".$industry."</span>";
								}?> 
							</ul>
		                </div>
					</div>
                    <?php echo $form->text('Project.industryname',array('class'=>'txthide','readonly'=>'true','style'=>'width:500px'));?>
		            <?php echo $form->text('Project.industryid',array('class'=>'txthide'));?>
                </div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
            	 <div class="form_left_title left">企业类型：</div>
            	 <div class="form_right_add left">
                	<?php 
		            $ctypeidlist="";
		            if($companytypes){
			            foreach($companytypes as $companytype){
			            	if(!empty($companytype["cvid"])){
			            		$ctypeidlist.=$companytype["cvid"].',';
			            	}
			            }
		            }
		            ?>
		            <div id="comptypeidlist" class="txthide"><?php echo $ctypeidlist?></div>
                	<div id="taglistct" class="added_item_list left"></div>
                    <div class="add_item_btn left">
	                    <a id="add_drop_float_clickct" href="javascript:void(0)"><?php __("Add")?></a>
		                <div id="add_float_boxct" class="add_float_box" style="display:none;">
		                    <ul>
			                    <?php 
			                    $dan="'";
			                    foreach($ctypes as $key=>$ctype){
									echo "<li><label>";
									echo '<input type="checkbox" id="chbox'.$key.'" onclick="settxt(this,'.$dan.$ctype.$dan.','.$dan."#ProjectCompanytypename".$dan.','.$dan."#ProjectCompanytypeid".$dan.','.$dan."#taglistct".$dan.','.$dan."add_drop_float_clickct".$dan.')" value="'.$key.'" />'.$ctype;
									echo "</label></li>";
									echo "<span id='span".$key."' class='txthide'>".$ctype."</span>";
								}?> 
							</ul>
		                </div>
					</div>
                    <?php echo $form->text('Project.companytypename',array('class'=>'txthide','readonly'=>'true','style'=>'width:500px'));?>
		            <?php echo $form->text('Project.companytypeid',array('class'=>'txthide'));?>
                </div>
            </div>
        </div>
        <!-- 信息来源 开始 -->
        <div class="details_item_line">
            <div class="details_item">
            	 <div class="form_left_title left">信息来源：</div>
            	 <div class="form_right_add left">
                	<?php 
		            $informationlist="";
		            if($informationfroms){
			            foreach($informationfroms as $informationfrom){
			            	if(!empty($informationfrom["cvid"])){
			            		$informationlist.=$informationfrom["cvid"].',';
			            	}
			            }
		            }
		            ?>
		            <div id="informationfromidlist" class="txthide"><?php echo $informationlist?></div>
                	<div id="taglistctim" class="added_item_list left"></div>
                    <div class="add_item_btn left">
	                    <a id="add_drop_float_clickim" href="javascript:void(0)"><?php __("Add")?></a>
		                <div id="add_float_boxim" class="add_float_box" style="display:none;">
		                    <ul>
			                    <?php 
			                    $dan="'";
			                    
			                    foreach($informations as $key=>$information){
									echo "<li><label>";
									echo '<input type="checkbox" id="chbox'.$key.'" onclick="settxt(this,'.$dan.$information.$dan.','.$dan."#ProjectInformationfromname".$dan.','.$dan."#ProjectInformationfromid".$dan.','.$dan."#taglistctim".$dan.','.$dan."add_drop_float_clickct".$dan.')" value="'.$key.'" />'.$information;
									echo "</label></li>";
									echo "<span id='span".$key."' class='txthide'>".$information."</span>";
								}?> 
							</ul>
		                </div>
					</div>
                    <?php echo $form->text('Project.informationfromname',array('class'=>'txthide','readonly'=>'true','style'=>'width:500px'));?>
		            <?php echo $form->text('Project.informationfromid',array('class'=>'txthide'));?>
                </div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left"><?php __("Regedit Time")?>：</div>
                <div class="form_right_e_input form_date_picker left"><?php echo $form->text('Company.reg_time',array("maxlength"=>"10","onfocus"=>"WdatePicker()","style"=>"width:130px"));?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><?php __("Regedit Capital")?>：</div>
                <div class="form_right_e_input left">
                <?php echo $form->text('Company.capital',array("placeholder"=>"0.00","onkeydown"=>"checkpricekeyup(this,event)","style"=>"width:70px","maxlength"=>"10"));?>
                  <?php
                  $attributes=array('legend'=>false);
                   echo $form->radio('Company.cap_type',array("0"=>"万元","1"=>"万美元"),$attributes);?>
                </div>
            </div>
             <div class="details_item">
                <div class="form_left_title left">资金到位：</div>
                <div class="form_right_input left">
                  <?php
                   echo $form->radio('Company.is_funds',array("0"=>"否","1"=>"是"),$attributes);?>
                </div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">入驻时间：</div>
                <div class="form_right_e_input form_date_picker left"><?php echo $form->text('Company.resident_time',array("maxlength"=>"10","onfocus"=>"WdatePicker()","style"=>"width:130px"));?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">职工数量：</div>
                <div class="form_right_e_input left"> <?php echo $form->text('Company.workers',array("placeholder"=>"","onkeydown"=>"checkpricekeyup(this,event)","style"=>"width:70px","maxlength"=>"10"));?> </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">高企认定：</div>
                <div class="form_right_input left">
                  <?php
                   echo $form->radio('Company.is_height',array("0"=>"否","1"=>"是"),$attributes);?>
                </div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left"><font style="color:red">*</font>公司负责人：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.contact',array("maxlength"=>"20"));?></div>
                <div id='contactmessage' style='display:none;' class="error_message">请输入负责人</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><font style="color:red">*</font><?php __("Tel")?>：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.tel',array("maxlength"=>"20"));?></div>
                <div id='telmessage' style='display:none;' class="error_message">请输入联系电话</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><font style="color:red">*</font><?php __("Mail")?>：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.email',array("maxlength"=>"50","style"=>"ime-mode:disabled"));?></div>
                <?php echo $form->text('User.uemail',array("class"=>"txthide","value"=>$form->value('Company.email')));?>
                <div id='companyemailmessage' style='display:none;' class="error_message">邮箱格式不正确</div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">常用联系人：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.usualcontact',array("maxlength"=>"20"));?></div>
                <div id='usualcontactmessage' style='display:none;' class="error_message">请输入常用联系人</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><?php __("Tel")?>：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.usualtel',array("maxlength"=>"20"));?></div>
                <div id='usualtelmessage' style='display:none;' class="error_message">请输入联系电话</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left"><?php __("Mail")?>：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.usualemail',array("maxlength"=>"50","style"=>"ime-mode:disabled"));?></div>
                <?php echo $form->text('User.usualuemail',array("class"=>"txthide","value"=>$form->value('Company.usualemail')));?>
                <div id='usualcompanyemailmessage' style='display:none;' class="error_message">邮箱格式不正确</div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">法人身份证号：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.corporation_ID',array("maxlength"=>"19"));?></div>
                <div id='corporation_IDmessage' style='display:none;' class="error_message">请输入法人身份证号</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">法人护照号：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.passportNo',array("maxlength"=>"20"));?></div>
                <div id='passportNomessage' style='display:none;' class="error_message">请输入法人护照号</div>
            </div>
        </div>
       <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">性别：</div>
                <div class="form_right_input left">
                <?php echo $form->radio('Company.sex',array("0"=>"男","1"=>"女"),$attributes);?>
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">毕业院校：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.graduate_school',array("maxlength"=>"50"));?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">学历学位：</div>
                <div class="form_right_e_input left"><?php echo $form->select('Company.education',$educations, null,null,null);?></div>
            </div>
        </div>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">出生年月：</div>
                  <div class="form_right_e_input form_date_picker left"><?php echo $form->text('Company.birthday',array("maxlength"=>"10","onfocus"=>"WdatePicker()","style"=>"width:130px"));?></div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">国籍：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.nation',array("maxlength"=>"20"));?></div>
            </div>
            
        </div>
<?php 
//	$support_funds;
	if (!empty($support_funds)){
		foreach ($support_funds as $key=>$support_fund){
			if(!empty($key)){
				$showCSFvalue = array();
				if (is_array($CompSupportFunds)){//至少有两条记录
					foreach ($CompSupportFunds as $CompSupportFund){
						if ($CompSupportFund['type_id'] == $key){
							$showCSFvalue = $CompSupportFund;
						}
					}
				}else{//只有一条记录
					if ($CompSupportFunds['type_id'] == $key){
						$showCSFvalue = $CompSupportFunds;
					}
				}
?>
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left"><?php echo $support_fund;?>：</div>
                <div class="form_right_e_input left">
                	<input type="text" name="capital[]" value="<?php echo empty($CompSupportFunds)?'':$showCSFvalue['capital'];?>" placeholder="0.00" onkeydown="checkpricekeyup(this,event)" style="width:70px" maxlength="10"/>万元
                </div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">实收资本：</div>
                <div class="form_right_e_input left">
                	<input type="text" name="hascashed[]" value="<?php echo empty($CompSupportFunds)?'':$showCSFvalue['hascashed'];?>" placeholder="0.00" onkeydown="checkpricekeyup(this,event)" style="width:70px" maxlength="10"/>万元
                </div>
            </div>    
        </div>
        <input type="hidden" name="type_id[]" value="<?php echo $key;?>"/>
<?php 
			}
		}
	}
?>
<!--         <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">科创园扶持金：</div>
                <div class="form_right_e_input left">
                <?php echo $form->text('Company.custp_capital',array("placeholder"=>"0.00","onkeydown"=>"checkpricekeyup(this,event)","style"=>"width:70px","maxlength"=>"10"));?> 万元</div>
            </div>
            <div class="details_item">
                <div class="form_left_title left">实收资本：</div>
                <div class="form_right_e_input left"><?php echo $form->text('Company.custp_cash',array("placeholder"=>"0.00","onkeydown"=>"checkpricekeyup(this,event)","style"=>"width:70px","maxlength"=>"10"));?> 万元</div>
            </div>    
        </div> -->
        <div class="details_item_line">
            <div class="details_item">
                <div class="form_left_title left">电子材料：</div>
                <div class="form_right_input left">
                	<?php if($attachments){?>
                	<div class="file_category_list">
		        		<div id="filelist0" class="file_lists">
		        			<ul class="file_attach">
			                	<?php
			                	$dan="'";
			                	$second_ownerid=$form->value('Company.second_owner');
			                	$isflag=$action->checkPermissions($user,$id);
			                	foreach($attachments as $attachment) {
										echo "<li>";
										echo "<span>".$html->link($attachment["file_name"],'/projects/download/'.$attachment["id"],null)."</span>";
										echo "<span class='source_upload_date'>".date("Y-m-d",strtotime($attachment["created"]))."</span>";
										echo '<span class="source_upload_delete"><a title="删除" onclick="delfile(this,'.$dan.$attachment["id"].$dan.',0)" href="javascript:void(0)"></a></span>';
										echo "</li>";
								}
			                	?>
			                </ul>
		                </div>
		            </div>
		            <?php }?>
                	<div id="add1" class="left text_box"> 
						<div class="file_add_box">
							<input type="file" name="upload[]" />
						</div>
					</div>
	        		<div class="clear"></div>
					<div id="add2" class="left filelist"></div>
					<div class="left clear">
						<div class="left add_sub_file_btn">
							<span onclick="add()" href="#"><?php echo $html->image('list-add.png')?></span>&nbsp;
							<span onclick="remove()" href="#"><?php echo $html->image('list-remove.png')?></span>
						</div>
					</div>
                </div>
            </div>
        </div> 
        <div class="details_item_line edit_form_btn">
            <div class="details_item">
            	<div class="form_left_title left"></div>
                <div class="form_add_submit left">
               		<?php echo $form->submit(__('Save',true), array("div"=>false,"onclick"=>"saveperson()"));?>
	                <?php  echo $form->hidden('Company.id'); ?>	
	                <?php  echo $form->hidden('Company.person'); ?>
	                <?php  echo $form->hidden('Company.patents'); ?> 	                
	                <?php  echo $form->hidden('Company.economic'); ?>
	                <?php  echo $form->hidden('Company.talent'); ?>     
                </div>
                <div class="form_submit_more left">
                	<input class="click_drop_more_btn" type="button" value="保存并继续添加"/>	                
					<div class="save_and_add" style="display:none">
                  		<ul>
			            	<li><?php echo $form->submit('保存并继续添加人员信息', array("div"=>false,"onclick"=>"saveperson()")) ?></li>
			                <li><?php echo $form->submit('保存并继续添加经济信息', array("div"=>false,"onclick"=>"saveeconomic()")) ?></li>
			                <li><?php echo $form->submit('保存并继续添加科技信息', array("div"=>false,"onclick"=>"savepatents()")) ?></li>
			                <li><?php echo $form->submit('保存并继续添加人才信息', array("div"=>false,"onclick"=>"savetalent()")) ?></li>
						</ul>
	                </div>	                
	            </div>
	            <div class="clear"></div>
            </div>
        </div>        
        </form>
    </div>
</div>
<?php echo $this->element('delfileconfirm',array("title"=>"删除提示","message"=>"你确定要删除吗？")) ?>
<?php echo $javascript->link('project.js');?>
<script type="text/javascript">
var webpath=$("#getpath").attr('href');
var submit_judge=true;
$(document).ready(function() {
	$(".click_drop_more_btn").click(function(){
		$(".save_and_add").slideToggle("fast").css("display","block");
	});
	$("#CompanyCompanyName").keyup(function() {    	
		var cname=this.value;
		if(cname.trim()!=""){
   			var cnames=$("#cname").html();
   			if(cnames!=cname){
	   			var urlpath=webpath+'companys/checkcname/'+encodeURIComponent(cname);
				$.ajax({     	   
			        url: urlpath, 
			        success:function(data){
			        	if(data=="1")
			        	{
			        		$("#companynamemessage").css('display','block');
			        		$("#companynamemessage").html('企业名称已存在');
			        	}else{
			        		$("#companynamemessage").css('display','none');
			        		$("#companynamemessage").html('请输入企业名称');
			        	}
			        }
			    });
		    }else{
		    	$("#companynamemessage").css('display','none');
			    $("#companynamemessage").html('请输入企业名称');
		    }
	    }else{
	    	$("#companynamemessage").css('display','block');
		    $("#companynamemessage").html('请输入企业名称');
	    }
    });
    
    $("#CompanyEmail").keyup(function() {  
     	var mail=this.value;
     	var umail=$("#UserUemail").val();
	 	checkuserbymail(webpath,mail,umail,"#companyemailmessage");

    });  	
    $("#CompanyRegTime").click(function() {  
     	$("#add_float_box").css('display','none');
    });  
    $("#CompanyResidentTime").click(function() {  
     	$("#add_float_box").css('display','none');
    });  
});
function checksave()
{
	var mail=$("#CompanyEmail").val();
	var companytame=$("#CompanyCompanyName").val();
	var contact=$("#CompanyContact").val();
	var tel=$("#CompanyTel").val();
	
	if($("#companynamemessage").css('display')=="block"){
		return false;
	}
	if(companytame.trim() == ''){
		$("#companynamemessage").css('display','block');
		return false;
	}else{
		$("#companynamemessage").css('display','none');
	}
	if(contact.trim() == ''){
		$("#contactmessage").css('display','block');
		return false;
	}else{
		$("#contactmessage").css('display','none');
	}
	if(tel.trim() == ''){
		$("#telmessage").css('display','block');
		return false;
	}else{
		$("#telmessage").css('display','none');
	}
	if(mail.trim() == ''){
		$("#companyemailmessage").css('display','block');
		$("#companyemailmessage").html("请输入联系邮箱");
		return false;
	}else if(!checkEmail(mail.trim())){
		$("#companyemailmessage").css('display','block');
		$("#companyemailmessage").html("联系邮箱格式不正确");
		return false;
	}else if(submit_judge==false){
		return false;
	}else{
		$("#companyemailmessage").css('display','none');
	}
	if($("#companyemailmessage").css('display')=="block")
	{
		return false;
	}
	return true;
}
function addEV(C,B,A){
	if(window.attachEvent){
		C.attachEvent("on"+B,A);
	}else{
		if(window.addEventListener){
			C.addEventListener(B,A,false);
		}
	}
}
addEV(document,"click",function(E){
	var E=E||window.event;
	var A=E.target||E.srcElement;
	var D=window.event?E.button:E.which;
	var C=G("add_drop_float_click"),B=G("add_float_box");
	while(A&&A!=document.body&&A.tagName.toLowerCase()!="html"){
		if(A==C){break}
		if(A==B){break}
		A=A.parentNode
	}
	if(A==B){
		if(B!=null){
			B.style.display="block";
		}
	}else if(A!=C){
		if(B!=null){
			B.style.display="none";
		}
	}else{
		if(D<2){
			B.style.display=B.style.display=="block"?"none":"block";
		}
	}
});
function addEVct(C,B,A){
	if(window.attachEvent){
		C.attachEvent("on"+B,A);
	}else{
		if(window.addEventListener){
			C.addEventListener(B,A,false);
		}
	}
}
addEVct(document,"click",function(E){
	var E=E||window.event;
	var A=E.target||E.srcElement;
	var D=window.event?E.button:E.which;
	var C=G("add_drop_float_clickct"),B=G("add_float_boxct");
	while(A&&A!=document.body&&A.tagName.toLowerCase()!="html"){
		if(A==C){break}
		if(A==B){break}
		A=A.parentNode
	}
	if(A==B){
		if(B!=null){
			B.style.display="block";
		}
	}else if(A!=C){
		if(B!=null){
			B.style.display="none";
		}
	}else{
		if(D<2){
			B.style.display=B.style.display=="block"?"none":"block";
		}
	}
});
addEVct(document,"click",function(E){
	var E=E||window.event;
	var A=E.target||E.srcElement;
	var D=window.event?E.button:E.which;
	var C=G("add_drop_float_clickim"),B=G("add_float_boxim");
	while(A&&A!=document.body&&A.tagName.toLowerCase()!="html"){
		if(A==C){break}
		if(A==B){break}
		A=A.parentNode
	}
	if(A==B){
		if(B!=null){
			B.style.display="block";
		}
	}else if(A!=C){
		if(B!=null){
			B.style.display="none";
		}
	}else{
		if(D<2){
			B.style.display=B.style.display=="block"?"none":"block";
		}
	}
});
 function saveperson() {
		$("#CompanyPerson").val("1");
		return checksave();
	}
 function savepatents() {
		$("#CompanyPatents").val("1");
		return checksave();
	}

	function saveeconomic() {
		$("#CompanyEconomic").val("1");
		return checksave();
	}

	function savetalent() {
		$("#CompanyTalent").val("1");
		return checksave();
	}
	funPlaceholder(document.getElementById("license_address"));
</script>